package com.warrior.gatherclient.runner;

import com.warrior.gatherclient.service.DispatchCenterService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class StartRunner implements CommandLineRunner {

    @Autowired
    private DispatchCenterService dispatchCenterService;

    @Override
    public void run(String... args) throws Exception {
        dispatchCenterService.start();
    }

}